<?php

namespace app\http\middleware;

class Check
{
    public function handle($request, \Closure $next){
        if ($request->param('name') != 'think') {
            return redirect('/api/demo/Index/index');
        }
        return $next($request);
    }
}
